@import "../common/var.scss";
@mixin button-plain($color) {
  color: $color;

  &:hover,
  &:focus {
    background: $color;
    border-color: $color;
    color: $--color-white;
  }

  &:active {
    color: $--color-white;
    outline: none;
  }

  &.is-disabled {
    &,
    &:hover,
    &:focus,
    &:active {
      background-color: $--button-disabled-background-color;
    }
  }
}

@mixin button-variant($color, $background-color, $border-color) {
  color: $color;
  background-color: $background-color;
  border-color: $border-color;

  // &:hover,
  // &:focus {
  //   color: $color;
  // }
  
  // &:active {
  //   color: $color;
  //   outline: none;
  // }

  // &.is-active {
  //   color: $color;
  // }

  // &.is-plain {
  //   @include button-plain($background-color);
  // }
}
@mixin button-state($state, $color, $background-color, $border-color) {
  &:#{$state}{
    color: $color;
    background-color: $background-color;
    border-color: $border-color;
  }
}
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius, $width-min) {
  padding: $padding-vertical $padding-horizontal;
  font-size: $font-size;
  border-radius: $border-radius;
  min-width: $width-min;
  &.is-round {
    padding: $padding-vertical $padding-horizontal;
  }
}
